<?php

//require $_SERVER['DOCUMENT_ROOT'].'/pgk/smarty/Smarty.class.php';
include "../configuration.php";
//include (SMARTY_DIR . 'Smarty.class.php');
//$smarty = new Smarty();

$smarty->template_dir = LOCAL_PATH.'administrator/main/templates/';
$smarty->compile_dir = LOCAL_PATH.'administrator/main/templates_c/';
$smarty->config_dir = LOCAL_PATH.'administrator/main/configs';

$smarty->compile_check = true;
//$smarty->debugging = true;

$smarty->display('admin.tpl');
	
if (isset($_GET['warning'])){
	if ($_GET['warning']=="invalid") echo "Invalid usersname or password!!!";
}
?>